package com.liangsui.cmall.product.feign;

import com.liangsui.cmall.product.feign.fallback.SeckillServiceFallBack;
import com.liangsui.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * SeckillFeignService
 *
 * @author zhangjiawei
 * @email 1533167396@qq.com
 * @date 2022/8/25 22:01
 */
@FeignClient(value = "cmall-seckill", fallback = SeckillServiceFallBack.class)
public interface SeckillFeignService {

    @GetMapping("/sku/seckill/{skuId}")
    R getSkuSeckillInfo(@PathVariable("skuId") Long skuId);
}
